import request from "@/utils/request";

// 用能预算
export function getEnergyFeeStatisticV2(params) {
  return request({
    url: "/screen/statistics/energyFeeStatisticV2",
    method: "get",
    params,
  });
}

// 设备用电量用水量
export function getYearTotalEnergy(params) {
  return request({
    url: '/screen/statistics/getYearTotalEnergy',
    method: 'get',
    params
  })
}

// 统计中心-今年/去年碳排统计
export function carbonStatistic(params) {
  return request({
    url: '/screen/statistics/carbonStatistic',
    method: 'get',
    params
  })
}

// 统计中心-今年/去年消费统计
export function energyFeeStatistic(params) {
  return request({
    url: '/screen/statistics/energyFeeStatistic',
    method: 'get',
    params
  })
}

// 红黑榜
export function getRedandBlack(params) {
  return request({
    url: "/screen/statistics/deptRedBlackSortV2",
    method: "get",
    params,
  });
}

// 年度能耗
export function getenergyYear(params) {
  return request({
    url: "/screen/statistics/energyYear",
    method: "get",
    params,
  });
}

// 年度统计
export function getYearlist(params) {
  return request({
    url: "/energy/target/record/yearStatistic",
    method: "get",
    params,
  });
}

// 综表统计
export function getSummary(params) {
  return request({
    url: "/energy/target/record/summary",
    method: "get",
    params,
  });
}

// 部门设备档案信息
export function getDevice(params) {
  return request({
    url: "/energy/target/record/device",
    method: "get",
    params,
  });
}

// 办公房间计量汇总
export function getRoomsummary(params) {
  return request({
    url: "/energy/target/record/room/energyconsumption",
    method: "get",
    params,
  });
}

// 综表汇总
export function getMonthlysummary(params) {
  return request({
    url: "/energy/target/record/monthly/summary",
    method: "get",
    params,
  });
}

// 非办公用能数据汇总
export function getMonthlyNonOfficialInstitutionsummary(params) {
  return request({
    url: "/energy/target/record/monthly/nonOfficialInstitution/summary",
    method: "get",
    params,
  });
}
